package top.jiachunlei.strategy;

/**
 * 打八折优惠
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/12/1 20:53
 */
public class CashReturn extends Strategy
{
    @Override
    public double acceptCash(double... args)
    {
        double result = 0;
        for (double arg : args)
        {
            result += arg;
        }
        return result*0.8;
    }
}
